package com.design.decorate;

/**
 * @Author: ChengLei.Liu
 * @Date: 2020-07-22 15:49
 * @Description: 装饰者模式
 */
public class Test {

    public static void main(String[] args) {
        Person person = new Student();
        Person p1 = new CarDecorate(person);
        Person p2 = new CarDecorate(p1);
        p2.say();
    }
}
